package com.BraveY.Demo03;

public class Test04 {
    public static void main(String[] args) {
        //创建猫对象"花色","波斯猫"
        Cat c = new Cat();
        c.setBread("波斯猫");
        c.setColor("花色");
        //调用猫的方法
        c.eat();
        c.catchMouse();
        //创建狗对象"黑色","藏獒"
        Dog d = new Dog();
        d.setBread("藏獒");
        d.setColor("黑色");
        d.eat();
        d.lookhome();
    }
}
